package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;
import com.isunland.managesystem.entity.CustomerPersonParams;
import com.isunland.managesystem.utils.SharedPreferencesUtil;

public class CustomerRelationDepartmentPagerActivity extends BasePagerActivity {
  @Override protected Fragment createFragmentOne() {
    return new CustomerRelationDepartmentListFragment();
  }

  @Override protected Fragment createFragmentTwo() {
    CustomerPersonParams params = new CustomerPersonParams();
    params.setCustomerCode(
        SharedPreferencesUtil.getString(this, SharedPreferencesUtil.CUSTOMER_ID, ""));
    params.setCustomerName(
        SharedPreferencesUtil.getString(this, SharedPreferencesUtil.CUSTOMER_NAME, ""));
    params.setShowAddMenu(true);
    return CustomerRelationStaffListFragment.newInstance(params,
        new CustomerRelationStaffListFragment());
    //		return new CustomerRelationStaffListFragment();
  }

  @Override protected int[] createTitle() {

    return new int[] { R.string.customerKeyDepartment1, R.string.customerContact1 };
  }
}
